package com.fs.iot.service;

import com.fs.common.base.service.BaseService;
import com.fs.iot.bean.dto.GatewayDTO;
import com.fs.iot.bean.query.GatewayQuery;

import java.util.Optional;

/**
 * 网关服务接口 
 * @author Coder Generator 2025-03-22 15:29:27 
 **/
public interface GatewayEntityService extends BaseService<GatewayDTO, GatewayQuery> {
    default Optional<GatewayDTO> findByCode(String gatewayCode) {
        GatewayQuery query = new GatewayQuery();
        query.setCode(gatewayCode);
        return this.findOne(query);
    }
}